package com.usns;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class NewFeedActivity extends Activity {
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.newfeed);
        
        Button publish = (Button) findViewById(R.id.PublishButton);
        publish.setOnClickListener(new Button.OnClickListener(){
			public void onClick(View arg){
				finish();
			}
        });
        
        Button clear = (Button) findViewById(R.id.ClearButton);
        clear.setOnClickListener(new Button.OnClickListener(){
			public void onClick(View v) {
				EditText text = (EditText) findViewById(R.id.NewFeedText);
				text.clearComposingText();
			}
        });
    }
}
